package cn.itcast.autoconfig;

import cn.itcast.interceptor.SpringMvcConfig;
import cn.itcast.properties.IpProperties;
import cn.itcast.service.IpCountService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * ClassName: IpAutoConfiguration
 * Description:
 * Date: 2023/03/23 PM 10:48:02
 * <p>
 * project: springboot
 * package: cn.itcast.autoconfig
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@EnableScheduling
// @EnableConfigurationProperties(IpProperties.class)
@Import({IpProperties.class, SpringMvcConfig.class})
public class IpAutoConfiguration {

    @Bean
    public IpCountService ipCountService() {
        return new IpCountService();
    }
}
